import api from '@/libs/request'

/**
 * 评价管理列表
 */
export const doGetEvaluate = (params: any) => {
    return api.get('gruul-mall-order/order/evaluate', params)
}
/**
 * 批量设为精选/取消精选
 * @param {boolean} isExcellent
 * @param {string} data id[]
 */
export const doPutIsExcellentEvaluate = (isExcellent: boolean, data: string[]) => {
    return api.put(`gruul-mall-order/order/evaluate/excellent/${isExcellent}`, data)
}
/**
 * 商家回复
 * @param {boolean} evaluateId 评估id
 * @param {string} data 回复内容
 */
export const doPutShopReplyEvaluate = (evaluateId: string, data: string) => {
    return api.put(`gruul-mall-order/order/evaluate/${evaluateId}/reply`, data)
}
